import java.util.Random;
import java.util.Scanner;
public class nameceleb {

	public static void main(String[] args){
		String[] fullName = {
		"Conan OBrien" , "Carrot Top" , "David Bowie" , "Nicolas Cage", "Piotr Tchaikovsky" , "Sean Connery"
		};
		Random rng = new Random();
		Scanner scan = new Scanner(System.in);
		String scramble;
		String guess = "hi mr echols";
		int guesses = 3;
		String celebrity;
		celebrity = fullName[(rng.nextInt(6))];
		scramble = celebrity.substring(2,celebrity.length()-3);
		while(guesses < 3 && !guess.equals(celebrity)){
			System.out.println("What is the full name of this celebrity? (You have 3 tries)");
			System.out.println(scramble);
			guess = scan.nextLine();
			guesses++;
			if(guess.equals(celebrity)){
				System.out.println("Good job, you win.");
			}
			else if (guesses < 3) {
				System.out.println("YOU ARE WRONG TRY AGAIN.");
			}
			else {
				System.out.println("YOU WASTED EVERY SINGLE CHANCED YOU HAD, HOW COULD YOU??!??!!ONE!!!!?");
				System.out.println("IT WAS SO SIMPLE, THE NAME WAS " + celebrity + ".");
			}
		}

		scan.close();
	}	
}